package cm.dayo3.Test4;

import java.util.ArrayList;

public class StudentTest {
    public static void main(String[] args) {
        Student stu1=new Student("小黑","男",23);
        Student stu2=new Student("小黑","男",23);
        ArrayList<Student>list=new ArrayList<>();
        list.add(stu1);
        list.add(stu2);
        System.out.println(list);
        System.out.println(stu1.equals(stu2));
    }
}
